<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>变量</title>
</head>
<body>
    
</body>
<script>
    console.log(parseInt("100111",2));  //返回39
    console.log(parseInt("123",8));    //返回83
    console.log(parseInt("0xBC",16));  //返回188
</script>
</html>